#include <stdio.h>

int main(void)
{
  FILE *fp = NULL;
  char buff[255];
  fp = fopen("/tmp/test.text","r");
  fscanf(fp,"%s",buff);
  printf("1:%s\n",buff);
  fgets(buff,255,(FILE*)fp); 
  printf("2:%s\n",buff);
  fgets(buff,255,(FILE*)fp); 
  printf("3:%s\n",buff);
  fclose(fp); 
  return 0;
}
